// const userService = require("../services/user");

const userController = {
  getIp: async (req, res) => {
    const ip = req.ip;
    try {
      res.send({
        code: 200,
        message: "成功",
        data: ip,
      });
    } catch (err) {
      res.send({
        code: 201,
        message: "获取失败",
      });
    }
  },
};

module.exports = userController;
